<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header">月子中心-套餐-服务类目 编辑</head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${categoryDO.id}" type="hidden">

                       <!-- <div class="form-group">
                            <label class="col-sm-3 control-label">月子中心Id：</label>
                            <div class="col-sm-8">
                                <input id="baseId" name="baseId" th:value="${categoryDO.baseId}"
                                       class="form-control" type="text">
                            </div>
                        </div>-->


                        <div class="form-group">
                            <label class="col-sm-3 control-label">服务类目：</label>
                            <div class="col-sm-8">
                                <input id="category" name="category" th:value="${categoryDO.category}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">内容：</label>
                            <div class="col-sm-8">
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div class="ibox float-e-margins">
                                            <div class="ibox-content">
                                                <table class="table table-bordered">
                                                    <thead>
                                                    <tr>
                                                        <th>编号</th>
                                                        <th>项目名称</th>
                                                        <th>备注</th>
                                                        <th>#</th>
                                                        <th>新增</th>
                                                        <th>删除</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody class="itemId_1">

                                                    <tr th:each="item:${categoryDO.items}">
                                                        <td>
                                                            <input name="itemNo" th:value="${item.itemNo}" class="form-control" type="text">
                                                        </td>
                                                        <td>
                                                            <input name="itemName" th:value="${item.itemName}" class="form-control" type="text">
                                                        </td>
                                                        <td>
                                                            <input name="itemRemark" th:value="${item.itemRemark}" class="form-control" type="text">
                                                        </td>
                                                        <td>
                                                            <input name="itemIntro" th:value="${item.itemIntro}" class="form-control" type="text">
                                                        </td>
                                                        <td>
                                                            <button type="button" class="btn btn-primary"
                                                                    onclick="appendRow(1)">新增
                                                            </button>
                                                        </td>
                                                        <td>
                                                            <button type="button" class="btn btn-danger"
                                                                    onclick="removeRow(this)">删除
                                                            </button>
                                                        </td>
                                                    </tr>


                                                    </tbody>
                                                </table>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>



                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/usabb/maternityCombosCategory/edit.js">
</script>
</body>
</html>
